<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib uri="TowkerTagLib" prefix="rbac"%>
<%@ taglib uri="/WEB-INF/tags/CommonFunction.tld" prefix="cfn" %> 
<%@include file="/commons/include/html_doctype.html" %>
<html>
<head>
<title>用户信息</title>
<%@include file="/commons/include/get.jsp" %>
<script type="text/javascript" src="${ctx }/js/util/util.js"></script>
<script type="text/javascript" src="${ctx}/manage/sys/user/getUser.js"></script>
<script type="text/javascript">
</script>
</head> 
<body>
<table border="0" cellspacing="0" cellpadding="0" class="listLogo">
	<tr>
		<td class="title">
			<span class="sptitle"><font color="blue">${user.name}>>用户信息</font></span>
		</td>
		<td>
			<div class="menuTool">
			<a class="del" id="delSel" href="#" onClick="return false;">删除所选</a>
            <c:if test="${user.name ne '未审核用户组'}">
			<a class="add" href="addUser2.htm?id=${id}">添加</a>
            </c:if>
			</div>
		</td>
	</tr>
</table>

<div class="line"></div>
<form id="queryForm" method="post" action="getDiffUser.htm">
<table border="0" cellspacing="0" cellpadding="0" class="queryTable">
	<tr>
		<td class="title">帐号：</td>
		<td class="input"><input type="text" id="account" name="account" class="input" value="${fn:escapeXml(param.account)}" /></td>
		<td class="title">姓名：</td>
		<td class="input"><input type="text" id="name" name="name" class="input" value="${fn:escapeXml(param.name)}" /></td>
		<td class="query" colspan="2">
			<input type="hidden" id="hd_id" name="pid" class="input" value="${user.id}" />
			<input id="_querySubmit_" type="submit" class="button" value="查询" />
		</td>
	</tr>
</table>
</form>
<div class="line"></div>
<c:choose>
	<c:when test="${pageModel.result=='[]'}">
		<table border="0" cellspacing="1" cellpadding="0" class="listTable">
		<tr class="list_title">
			<td style="font-size:14px;">......暂未有相关用户信息......</td>
		</tr>
		</table>
	</c:when>
	<c:otherwise>
<form id="listForm" method="post" action="delUser.htm">
<table border="0" cellspacing="1" cellpadding="0" class="listTable">
	<tr class="list_title">
		<td><input id="chkall" type="checkbox" /></td>
		<td >用户代码</td>
		<td >客户代码</td>
		<td >帐号</td>
		<td >姓名</td>
		<td>公司</td>
		<td>部门</td>
		<td>职位</td>
		<td>状态</td>
		<td>操作</td>
	</tr>
<c:forEach items="${pageModel.result}" var="d" varStatus="status">
	<tr class="${status.index%2==0?'list_even':'list_odd'}">
		<td nowrap="nowrap">
			<input name="keyIndex" type="checkbox" value="${d.id}" />
		</td>
		<td>${d.userCode}</td>
		<td>${d.customCode}</td>
		<td>${fn:escapeXml(d.account)}</td>
		<td>${fn:escapeXml(d.name)}</td>
		<td>${fn:escapeXml(d.coCode)}</td>
		<td>${fn:escapeXml(d.deptCode)}</td>
		<td>${d.duty}</td>
		<td>${cfn:getUserStatusText(d.userStatus)}</td>
		<td>
		  <div class="menuTool">
		    <a class="del del_user" onClick="a_del(${d.id},${d.pid})" href="#">删除</a>
		    <a class="upd" href="updUser1.htm?keyIndex=${d.id}"><c:if test="${d.pid == 27834}">审核</c:if>修改</a>
		    <a class="get" href="getUserById.htm?keyIndex=${d.id}">详细</a>
		    </div>
		  </td>
	</tr>
</c:forEach>
</table>
<input id="_submit_" type="submit" style="display:none;" />
</form>
<table border="0" cellspacing="0" cellpadding="0" class="bottomTable">
	<tr><td>${pageNav.page}</td></tr>
</table>
</c:otherwise>
</c:choose>
</body>
</html>
